package com.happycat.mobile.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
/**
 * Module: UserExperience.java
 *
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-08-01
 * @Descriptions:
 */
@Data
@TableName(value = "user_experience")
@ApiModel
public class UserExperience  {
    public static final int TASK_GET = 1;
    public static final int MANAGER_CHANGE = 2;
    public static final int RECHANGE = 3;
    public static final int GIVE_GIFT = 4;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value="id")
	private Long id;

    @TableField(value = "source")
    @ApiModelProperty(value="来源：1、任务获取，2、管理员修改, 3、充值, 4送礼物")
	private Integer source;

	@TableField("account_id")
	@ApiModelProperty(value="用户")
	private Long accountId;

	@TableField("experience_points")
	@ApiModelProperty(value="变动经验值")
	private Integer experiencePoints;

	@TableField("current_experience")
	@ApiModelProperty(value="变动后经验值")
	private Integer currentExperience;
	
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@TableField("create_time")
	@ApiModelProperty(value="创建时间")
	private Date createTime;

    @TableField("remarks")
    @ApiModelProperty(value="备注")
	private String remarks;

}